import { request } from "../util/request";

export function getUserdata(data) {
  return request({
    url: "/login",
    method: "get",
    params: data
  });
}
//插入新用户
export function insertNewOne(params) {
  return request({
    url: "/login",
    method: "post",
	params
  });
}
// 删除
export function delet(data) {
  return request({
    url: "/home/administrators/delete",
    method: "get",
    params: data
  });
}
// 编辑
export function edit(data) {
  return request({
    url: "/home/administrators/edit",
    method: "get",
    params: data
  });
}
